package models

import "fmt"

type ImageModel struct {
	Model
	FileName string `gorm:"size:64;comment:文件名" json:"fileName"`
	Path     string `gorm:"size:256;comment:文件路径" json:"path"`
	Size     int64  `gorm:"comment:文件大小" json:"size"`
	Hash     string `gorm:"size:32;comment:文件hash值" json:"hash"`
}

func (i ImageModel) WebPath() string {
	return fmt.Sprintf("/")
}
